﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using KinonekoSoftware.Foundation.Styles;

namespace KinonekoSoftware.Studio.Contents
{
    public partial class Component_NoData : UserControl
    {
        public static readonly DependencyProperty PaletteProperty =
            DependencyProperty.Register(nameof(Palette),
                                        typeof(ColorPalette),
                                        typeof(Component_NoData),
                                        new PropertyMetadata(default(ColorPalette)));

        public static readonly DependencyProperty CommandProperty =
            DependencyProperty.Register(nameof(Command),
                                        typeof(ICommand),
                                        typeof(Component_NoData),
                                        new PropertyMetadata(default(ICommand)));

        public Component_NoData()
        {
            InitializeComponent();
        }

        public ICommand Command
        {
            get => (ICommand)GetValue(CommandProperty);
            set => SetValue(CommandProperty, value);
        }
        
        public ColorPalette Palette
        {
            get => (ColorPalette)GetValue(PaletteProperty);
            set => SetValue(PaletteProperty, value);
        }
    }
}